# encoding: utf-8
""" 
@version: v1.0 
@author: autumner 
@license: Apache Licence  
@contact: 18322313385@163.com 
@site:  https://gitee.com/autumner/pythoncookbook
@software: PyCharm 
@file: net_simplexmlrpcserver_client.py 
@time: 2019/7/15 下午2:32
"""
'''
SimpleXMLRPCServer的使用,客户端
'''

from xmlrpc.client import ServerProxy
s = ServerProxy('http://localhost:8000')
print(s.pow(2, 3))
print(s.add(2, 3))
print(s.sub(6, 3))
print(s.mul(5, 2))
print(s.div(8.32, 2))
